﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Reflection;
namespace SLLottery.Common
{
	/// <summary>
	/// 系统常量定义
	/// </summary>
	public class Constant
	{
		public static double BaseScale = 1850;
		public static double BaseMinScale = 1600;
		public static double MaxScale = 1920;
		public static double MinScale = 1600;
		public static int Multiple = 1;

		public static double MaxBonusPct = 5;

		public static double MemBonusIncrement = 0.5;
		//==================================


		public static double MaxBetCount = 200;
		public static double MaxBetMoney = 20000;
		public static double OneBetPoint = 2;
		public static double MinOneBetMoney = 0.1;
		public static double MaxOneBetMoney = 200;
		//==================================
		public static double MaxOutMoneyOneDay = 50000;
		public static double MaxOutMoneyOneTime = 50000;
		public static double MinOutMoneyOneTime = 100;
		public static int MaxOutMoneyTimesOneDay = 3;
		//==================================
		public static string USERINFO_SESSION = "UserInfo_Session";
		public static string USERNAME_SESSION = "UserName_Session";
		//==================================
		public static string LOTTERYPLAYTYPE_SESSION = "LotteryType_Session";
		public static string PLAYTYPE_SESSION = "PlayType_Session";

		public static string SSCPLAYTYPE_SESSION = "SSCPlayType_Session";
		public static string _3DPLAYTYPE_SESSION = "_3DPlayType_Session";
		public static string SSQPLAYTYPE_SESSION = "SSQPlayType_Session";
		public static string SSCRXPLAYTYPE_SESSION = "SSCRXPlayType_Session";

		public static string NSSCPLAYTYPE_SESSION = "NSSCPlayType_Session";
		public static string N_3DPLAYTYPE_SESSION = "N_3DPlayType_Session";
		public static string NSSQPLAYTYPE_SESSION = "NSSQPlayType_Session";
		//==================================
		public static string PLAYTYPERADIO_SESSION = "PlayTypeRadio_Session";
		public static string SSCPLAYTYPERADIO_SESSION = "SSCPlayTypeRadio_Session";
		public static string _3DPLAYTYPERADIO_SESSION = "_3DPlayTypeRadio_Session";
		public static string SSQPLAYTYPERADIO_SESSION = "SSQPlayTypeRadio_Session";

		public static string NSSCPLAYTYPERADIO_SESSION = "NSSCPlayTypeRadio_Session";
		public static string N_3DPLAYTYPERADIO_SESSION = "N_3DPlayTypeRadio_Session";
		public static string NSSQPLAYTYPERADIO_SESSION = "NSSQPlayTypeRadio_Session";
		//==================================
		public static string PLAYTYPENUM_SESSION = "PlayTypeNUM_Session";
		public static string SSCPLAYTYPENUM_SESSION = "SSCPlayTypeNUM_Session";
		public static string _3DPLAYTYPENUM_SESSION = "_3DPlayTypeNUM_Session";
		public static string SSQPLAYTYPENUM_SESSION = "SSQPlayTypeNUM_Session";

		public static string NSSCPLAYTYPENUM_SESSION = "NSSCPlayTypeNUM_Session";
		public static string N_3DPLAYTYPENUM_SESSION = "N_3DPlayTypeNUM_Session";
		public static string NSSQPLAYTYPENUM_SESSION = "NSSQPlayTypeNUM_Session";
		//===================================

		//期号(当前期、上一期)
		public static string CURRENTISSUENO_SESSION = "CurrentIssueNo_Session";
		public static string LASTISSUENO_SESSION = "LastIssueNo_Session";

		//逆向赔率
		public static string REVERSEODDS_SESSION = "ReverseOdds_Session";

		//盈亏记录
		public static ProfitTypeInfo[] ProfitTypeInfos = new ProfitTypeInfo[] {
            new ProfitTypeInfo(0, "全部"), 
            new ProfitTypeInfo(1, "盈亏"), 
            new ProfitTypeInfo(2, "返点"),
            new ProfitTypeInfo(3, "充值"),
            new ProfitTypeInfo(4, "提现"),
            new ProfitTypeInfo(5, "提现返点") };
		//================================
		public static string KFSystem = "http://www41.53kf.com/webCompany.php?arg=slc01&style=1&charset=utf-8";

		public static string SocketIp = "localhost";
		public static int SocketPort = 3397;
		public static string WcfSrvIp = "http://localhost:3397/LotteryService.svc";

	}
	public enum LotteryOrientation
	{
		Positive = 0,
		Reverse = 1
	}
	public enum LotteryType
	{
		SSC = 1,
		_3D = 2,
		SSQ = 3,
		NSSC = 4,
		N3D = 5,
		NSSQ = 6,
		SSCRX = 7
	}
	public enum SSCPlayType
	{
		_3xZhix = 1,
		_3xZux = 2,
		_2xZhix = 3,
		_2xZux = 4,
		_H1Zhix = 5,
		_Bddw = 6,
		_Ddw = 7
	}
	public enum SSCRXPlayType
	{
		_R3Zhix = 21,
		_R3Zux = 22,
		_R2Zhix = 23,
		_R2Zux = 24,
		_Rydw = 25,
		_Rbdw = 26
	}
	public enum _3DPlayType
	{
		_3xZhix = 8,
		_3xZux = 9,
		_2xZhix = 10,
		_2xZux = 11,
		_H1Zhix = 12,
		_Bddw = 13,
		_Ddw = 14
	}
	public enum SSQPlayType
	{
		Blue = 15,
		Red = 16
	}
	public enum NSSCPlayType
	{
		_Bddw = 17
	}
	public enum N3DPlayType
	{
		_Bddw = 18
	}
	public enum NSSQPlayType
	{
		Blue = 19,
		Red = 20
	}
	public enum PlayType
	{
		_3xZhix = 1,
		_3xZux = 2,
		_2xZhix = 3,
		_2xZux = 4,
		_H1Zhix = 5,
		_Bddw = 6,
		_Ddw = 7,
		_3DZhix = 8,
		_3DZux = 9,
		_3D2xZhix = 10,
		_3D2xZux = 11,
		_3DH1Zhix = 12,
		_3DBddw = 13,
		_3DDdw = 14,
		_SSQBlue = 15,
		_SSQRed = 16,
		NSSCBdw = 17,
		N3DBdw = 18,
		NSSQBlue = 19,
		NSSQRed = 20,
		_R3Zhix = 21,
		_R3Zux = 22,
		_R2Zhix = 23,
		_R2Zux = 24,
		_Rydw = 25,
		_Rbdw = 26
	}
	public enum PlayTypeRadio
	{
		//=====SSC========
		后三直选复式 = 1, 后三直选单式 = 2, 前三直选复式 = 3, 前三直选单式 = 4,
		后三组选组六 = 5, 后三组选组三 = 6, 后三组选混合 = 7, 前三组选组六 = 8, 前三组选组三 = 9, 前三组选混合 = 10,
		后二直选复式 = 11, 后二直选单式 = 12, 前二直选复式 = 13, 前二直选单式 = 14,
		后二组选组二 = 15, 后二组选混合 = 16, 前二组选组二 = 17, 前二组选混合 = 18,
		后一直选复式 = 19,
		后三不定位胆 = 20, 前三不定位胆 = 21, 五星不定位胆 = 22,
		五星定位胆 = 23,
		//====3D=========
		_3D直选复式 = 24, _3D直选单式 = 25,
		_3D组选组六 = 26, _3D组选组三 = 27, _3D组选混合 = 28,
		_3D后二直选复式 = 29, _3D后二直选单式 = 30,
		_3D后二组选组二 = 31, _3D后二组选混合 = 32,
		_3D后一直选复式 = 33,
		_3D不定位胆 = 34,
		_3D定位胆 = 35,
		//====SSQ=========
		蓝码 = 36,
		红码 = 37,
		//====NSSC========
		NSSC后一 = 38, NSSC后二 = 39, NSSC后三 = 40, NSSC五星 = 41,
		//====N3D=========
		N3D后一 = 42, N3D后二 = 43, N3D三星 = 44,
		//====NSSQ========
		NSSQ蓝码 = 45,
		NSSQ红码 = 46,
		//====SSCRX=======
		任三直选复式 = 47, 任三直选单式 = 48, 任三组三 = 49, 任三组六 = 50, 任三组选单式 = 51,
		任二直选复式 = 52, 任二直选单式 = 53, 任二组选 = 54, 任意定位 = 55, 后三不定位 = 56,
		前三不定位 = 57, 五星不定位 = 58
	}
	public enum BetStatusEnum
	{
		Bet = 0,
		Lottery = 1
	}

	public enum CommandType
	{
		MakeOffLine
	}
}
